var mask = document.getElementById('mask');
var star = document.getElementById('star');
var jsq = document.getElementById('jsq');
var textInfo = document.querySelectorAll('#mask p')[0];

var jishi = 59;
var timer;

star.addEventListener('click',function(){
	mask.style.display = 'none';

	timer = setInterval(function(){
		jsq.innerText = jishi;
		jishi--;
		if(jishi == -1){
			clearInterval(timer);
			mask.style.display = 'block';
			jsq.innerText = 60;
			jishi = 59;
			textInfo.innerText = '本轮游戏积分为'+ gsjs.innerText + '分';

			star.innerText = '点击开始新一轮游戏';
		}
	},1000)
})